package com.work.libtest2.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.work.libtest2.dto.RewardAndPunishmentDTO;
import com.work.libtest2.entity.RewardAndPunishment;

/**
 * ClassName: RewardAndPunishment
 * Package: com.work.libtest2.service
 * Description:
 *
 * @Author
 * @Create 2024/6/10 15:42
 * @Version 1.0
 */
public interface RewardAndPunishmentService {
    IPage<RewardAndPunishment> getPage(Integer currenPage, Integer pageSize, RewardAndPunishmentDTO rewardAndPunishmentDTO);

    int addReward(RewardAndPunishment rewardAndPunishment);

    int deleteById(Integer rapId);

    RewardAndPunishment getById(Integer rapId);


    int saveById(RewardAndPunishment rewardAndPunishment);
}
